#!/usr/bin/python3
# -*- coding: utf-8 -*-
# ======================================#
# @Author   : duanqizhong
# @time     : 2022-8-6 23:45
# @file     : log.yaml
# @Software : PyCharm
# ======================================#
import logging.config
import os
import sys

from base.func import get_yaml_dict
from settings import BASE_DIR

path_log = os.path.join(BASE_DIR, "base/log/log.yaml").replace("\\", "/")
logging.config.dictConfig(get_yaml_dict(path_log))
if sys.platform.startswith("win"):
    log = logging.getLogger("console")
else:
    log = logging.getLogger("log")
